import api from './api';

// 登录接口
export const login = async (username, password) => {
    try {
      const response = await api.post('/login', { username, password });
      return response;
    } catch (error) {
      throw error;
    }
  }